<?php
namespace app\index\model;

use think\Model;

class Tags extends Model
{
	public function TagName($id){

	    if (is_numeric($id)) {
            return $this->where(['id'=>$id])->value('tag_name');
        } else {
            return $this->where(['tag_name'=>$id])->value('tag_name');
        }

	}
}